package com.tenement.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.tenement.entity.Chat;
import com.tenement.entity.ChatModel;
import com.tenement.vo.QueryVo;

import java.util.List;

/**
 *  服务层。
 *
 * @author BertXie
 * @since 1.0.1
 */
public interface ChatService extends IService<Chat> {

    int offLine(List<Long> sentUser, ChatModel chat);

    Page<Chat> list(QueryVo queryVo);

    int removeByUser(Long userId, Long targetId);

    long noReadCount(Long userId);
}
